package com.tan.mypark.module;

/**
 * 剩余车位接口返回实体类
 */
public class RestSpaceResponse {
    private String message;
    private boolean success;
    private RestSpaceData data;

    // Getter & Setter
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public RestSpaceData getData() {
        return data;
    }

    public void setData(RestSpaceData data) {
        this.data = data;
    }

    /**
     * 内部类：对应返回的data字段（包含剩余车位）
     */
    public static class RestSpaceData {
        private int restSpace;

        public int getRestSpace() {
            return restSpace;
        }

        public void setRestSpace(int restSpace) {
            this.restSpace = restSpace;
        }
    }
}